<?php /*a:3:{s:51:"D:\phpstudy_pro\WWW\tp\view\index\select\form1.html";i:1628055265;s:50:"D:\phpstudy_pro\WWW\tp\view\index\Include\top.html";i:1628047300;s:51:"D:\phpstudy_pro\WWW\tp\view\index\Include\left.html";i:1627639135;}*/ ?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
		<title>Select</title>
		<!-- Bootstrap CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/bootstrap.min.css">

		<!-- Fontawesome CSS --> 
		<link rel="stylesheet" href="/static/index/assets/plugins/fontawesome/css/fontawesome.min.css">
		<link rel="stylesheet" href="/static/index/assets/plugins/fontawesome/css/all.min.css">

		<!-- calendar CSS -->
		<link rel="stylesheet" href="/static/index/assets/plugins/simple-calendar/simple-calendar.css">

		<!-- Feathericon CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/feather.css">

		<!-- Main CSS -->
		<link rel="stylesheet" href="/static/index/assets/css/style.css">
	</head>
	<body>
	<!-- Main Wrapper -->
	<div class="main-wrapper">
		<!-- Header -->
		<div class="header">
  <!-- Logo -->
  <div class="header-left">
    <a href="index.html" class="logo"></a>
    <a href="index.html" class="logo logo-small"></a>
  </div>
  <!-- /Logo -->
  <a href="javascript:void(0);" id="toggle_btn">
    <i class="fas fa-bars"></i>
  </a>

  <!-- Mobile Menu Toggle -->
  <a class="mobile_btn" id="mobile_btn"><i class="fas fa-bars"></i>
  </a>
  <!-- /Mobile Menu Toggle -->
  <!-- Header Right Menu -->
  <ul class="nav user-menu">
    <li class="nav-item dropdown has-arrow main-drop ml-md-3" style="margin: 0 5em 0 0;">
      <a href="#" class="dropdown-toggle nav-link" data-toggle="dropdown">
							<span class="user-img"><img src="/static/index/assets/img/avatar.jpg" alt="">
							<span class="status online"></span></span>
      </a>
      <div class="dropdown-menu">
        <a class="dropdown-item" href="/index/login/loginout"><i class="feather-power"></i>退出</a>
      </div>
    </li>
  </ul>
  <!-- /Header Right Menu -->
</div>
		<!-- /Header -->

		<!-- Sidebar -->
		<div class="sidebar" id="sidebar">
  <div class="sidebar-inner slimscroll">
    <div id="sidebar-menu" class="sidebar-menu">
      <ul>
        <li class="menu-title">	<span>Main</span>
        </li>
        <li class="active">	<a href="/index/Index/index.html"><i class="feather-home"></i><span class="shape1"></span><span class="shape2"></span><span>导游信息</span></a>
        </li>
        <li><a href="/index/User/index.html"><i class="feather-user"></i> <span>管理员信息</span></a>
        </li>
        <li><a href="/index/Select/form1.html"><i class="feather-list"></i> <span>条件搜索</span></a>
        </li>
        <li><a href="/index/Travelroute/form1.html"><i class="feather-bar-chart"></i> <span>行程信息</span></a>
        </li>
      </ul>
    </div>
  </div>
</div>
		<!-- /Sidebar -->

		<!-- Page Wrapper -->
            <div class="page-wrapper">
                <div class="content container-fluid">
					<div class="row">
						<div class="col-lg-12">
							<div class="card">
								<div class="card-header">
									<h5 class="card-title">条件查询</h5>
								</div>
								<div class="card-body">
									<form action="/index/Select/form1" method="get" autocomplete="off">
										<div class="form-group row">
											<label class="col-form-label col-md-2">搜索前提</label>
											<div class="col-md-10">
												<select class="form-control" id="befor" name="befor">
													<option>-- 搜索 --</option>
													<option value="1" <?php if($val == 1): ?>selected <?php endif; ?> >导游</option>
													<option value="2" <?php if($val == 2): ?>selected <?php endif; ?> >车牌号</option>
													<option value="3" <?php if($val == 3): ?>selected <?php endif; ?> >游客</option>
												</select>
											</div>
										</div>
										<div class="form-group row">
											<label class="col-form-label col-md-2">相应名称</label>
											<div class="col-md-10">
												<input type="text" name="name" class="form-control">
											</div>
										</div>
										<div class="text-right">
											<button type="submit" class="btn btn-primary">Submit</button>
										</div>
									</form>
								</div>

								<div class="card-body">
									<?php if($val == 3): ?>
									<div class="table-responsive">
										<table class="table mb-0">
											<thead>
											<tr>
												<th>导游姓名</th>
												<th>导游手机</th>
												<th>出团日期</th>
												<th>司机手机</th>
												<th>行程路线</th>
												<th>车牌号</th>
												<th>接车地址</th>

											</tr>
											</thead>
											<tbody>
											<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
											<tr>
												<td><?php echo htmlentities($vv['dyname']); ?></td>
												<td><?php echo htmlentities($vv['dyiphone']); ?></td>
												<td><?php echo htmlentities(date("Y-m-d",!is_numeric($vv['datetime'])? strtotime($vv['datetime']) : $vv['datetime'])); ?></td>
												<td><?php echo htmlentities($vv['sjiphone']); ?></td>
												<td><?php echo htmlentities($vv['travelroute']); ?></td>
												<td><?php echo htmlentities($vv['carNum']); ?></td>
												<td><?php echo htmlentities($vv['address']); ?></td>
											</tr>
											<?php endforeach; endif; else: echo "" ;endif; ?>
											</tbody>
										</table>
									</div>
									<?php else: ?>
									<div class="table-responsive">
										<table class="table mb-0">
											<thead>
											<tr>
												<th>导游姓名</th>
												<th>行程团号</th>
												<th>游客姓名</th>
												<th>年龄</th>
												<th>性别</th>
												<th>电话</th>
												<th>家庭编号</th>
												<th>注册时间</th>

											</tr>
											</thead>
											<tbody>
											<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
											<tr>
												<td><?php echo htmlentities($vv['dyname']); ?></td>
												<td><?php echo htmlentities($vv['groupNum']); ?></td>
												<td><?php echo htmlentities($vv['ykname']); ?></td>
												<td><?php echo htmlentities($vv['age']); ?></td>
												<td><?php echo htmlentities($vv['sex']); ?></td>
												<td><?php echo htmlentities($vv['ykiphone']); ?></td>
												<td><?php echo htmlentities($vv['home_num']); ?></td>
												<td><?php echo htmlentities(date("Y-m-d H-i-s",!is_numeric($vv['ykaddtime'])? strtotime($vv['ykaddtime']) : $vv['ykaddtime'])); ?></td>
											</tr>
											<?php endforeach; endif; else: echo "" ;endif; ?>
											</tbody>
										</table>
									</div>
									<?php endif; ?>
									<div class="row" style="margin-left: 85%;height: 45px;width:100%;">
										<div class="btn btn-default col-xs-12 col-sm-6 col-md-8">
											<?php echo $page; ?>
										</div>
									</div>

								</div>
							</div>
						</div>
					</div>
				
				</div>			
			</div>

        </div>
		<!-- /Main Wrapper -->
		
		<!-- jQuery -->
		<script src="/static/index/assets/js/jquery-3.6.0.min.js"></script>

		<!-- Bootstrap Core JS -->
		<script src="/static/index/assets/js/bootstrap.bundle.min.js"></script>
		
		<!-- Slimscroll JS -->
		<script src="/static/index/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		
		<!-- Custom JS -->
		<script src="/static/index/assets/js/script.js"></script>

	</body>
</html>
